package com.ruicar.afs.cloud.workflow.greatwall.dto.design;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumDeserializer;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumSerializer;
import com.ruicar.afs.cloud.common.modules.enums.GreatWallFlowParamType;
import com.ruicar.afs.cloud.workflow.api.dto.FlowParam;
import lombok.Data;

import java.util.List;

@Data
public class ConfigParamDto extends FlowParam {
    public ConfigParamDto(String label, String value) {
        super(label, value);
    }

    @JSONField(serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GreatWallFlowParamType type;
    private List option;
}
